home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
gnu
/
fpu881
/
src6.zoo
/
sign.c
< prev
next >
Wrap
Text File
|
1991-09-24
|
205b
|
19 lines
double sign (x, y)
double x;
double y;
{
if (x > 0.0) {
if (y > 0.0) {
return(x);
} else {
return(-x);
}
} else {
if (y < 0.0) {
return(x);
} else {
return(-x);
}
}
}